Use PEGetPrintDate to determine the print date (if any) that was specified with the report. Use this function to retrieve the print date and pass it back using PESetPrintDate.
BOOL CRPE_API PEGetPrintDate (
short printJob,
short FAR *year,
short FAR *month,
short FAR *day );
You change the print date, typically, when you want to run the report today yet have it appear to have been run on a different date. An example would be, if you were out of town on the last day of the previous month and you later want to run a report for that month and make it appear as if it were run on the last day of the month rather than the current date.
Declare Function PEGetPrintDate Lib "crpe32.dll" (ByVal printJob As Integer, Date_Year As Integer, Date_Month As Integer, Date_Day As Integer) As Integer
function PEGetPrintDate (
printJob: Word;
var year: Word;
var month: Word;
var day: Word
): Bool stdcall;
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |